package com.example.exceldemo.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @Description：设备导入信息
 * @Author xiaohuang
 * @Date 2025/2/18
 */
@Data
public class Device {

    /**
     * 序号
     */
    @Excel(name = "数字",orderNum = "1",type = 10)
    private Integer id;
    /**
     * 数量
     */
    @Excel(name = "数量",orderNum = "2",type = 10)
    private Integer num;
    /**
     * 单价
     */
    @Excel(name = "单价",orderNum = "3",type = 10)
    private BigDecimal price;
    /**
     * 生产日期 yyyy-MM-dd
     */
    @Excel(name = "生产日期",orderNum = "4",format = "yyyy-MM-dd")
    private LocalDate date;
    /**
     * 类型
     */
    @Excel(name = "类型",orderNum = "5" ,replace = {"电_1","土_2"})
    private String type;


}
